package com.mp.approvalreq.dao;

import com.mp.approvalreq.entity.po.GlobalSetting;

import java.sql.SQLException;

/**
 * @author liuqi
 * @date 2018/11/22
 */
public interface GlobalSettingDao {

	/**
	 * 添加重复策略
	 *
	 * @param globalSettings
	 * @throws SQLException
	 */
	void insertDuplicateStrategy(GlobalSetting globalSettings) throws SQLException;

	/**
	 * 获取公司全局设置
	 *
	 * @param companyId
	 * @return
	 * @throws SQLException
	 */
	GlobalSetting selectGlobalSetting(Integer companyId) throws SQLException;

	/**
	 * 更新重复策略
	 *
	 * @param globalSetting
	 * @throws SQLException
	 */
	void updateDuplicateStrategy(GlobalSetting globalSetting) throws SQLException;

}
